<?php

use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Route;
use Livewire\Volt\Volt;
App::setLocale("en");
Route::get('/', function () {
    return view('welcome');
})->name('home');

Route::post('logout', \App\Livewire\Actions\Logout::class)
    ->name('logout');

Route::middleware('guest')->group(function () {
  Volt::route('login', 'auth.login')
      ->name('login');

  Volt::route('register', 'auth.register')
      ->name('register');

  Volt::route('forgot-password', 'auth.forgot-password')
      ->name('password.request');
});

require __DIR__.'/auth.php';

